﻿var ca = java.util.Calendar.getInstance();
var year = ca.get(java.util.Calendar.YEAR); //获得年份
var month = ca.get(java.util.Calendar.MONTH) + 1; //获得月份
var day = ca.get(java.util.Calendar.DATE);//获取日
var hour = ca.get(java.util.Calendar.HOUR_OF_DAY); //获得小时
var minute = ca.get(java.util.Calendar.MINUTE);//获得分钟
var second = ca.get(java.util.Calendar.SECOND); //获得秒
var weekday = ca.get(java.util.Calendar.DAY_OF_WEEK);
var yun1 ="#fUI/UIWindow/Quest/icon7/10#";////红色圆
var yun2 ="#fUI/UIWindow/Quest/icon8/0#";////蓝指标
var yun4 ="#fUI/UIWindow/Quest/reward#";////奖励
var ppp = "#fEffect/CharacterEff/1112907/4/0#"; //泡炮
var zs = "#fEffect/CharacterEff/1112946/2/0#";  //砖石粉
var zs1 = "#fEffect/CharacterEff/1112946/1/1#";  //砖石蓝
var yun ="#fUI/UIWindow/PartySearch2/BtNext/mouseOver/0#";////红沙漏
var wn1 = "#fUI/Basic.img/BtClaim/normal/0#";  //警灯
var yun2 ="#fUI/UIWindow/Quest/icon8/0#";////蓝指标
var kkk = "#fEffect/CharacterEff/1112904/0/0#";
var status = -1;
var giftNX = 10000;
var eff1 = "#fUI/UIPVP.img/MiniMapIcon/star#";
var ttt = "#fUI/UIPVP.img/MiniMapIcon/star#";//"+ttt+"//美化1
var eff = "#fUI/UIWindow2.img/AttackRangking/1#";//小皇冠
var ttt = "#fUI/UIPVP.img/MiniMapIcon/star#";//小黄心
var 头顶 ="#fItem/Cash/0501.img/05010002/effect/default/7#";
var tz12 = "#fEffect/CharacterEff/1112924/0/0#";  //黄星
var tz13 = "#fEffect/CharacterEff/1112925/0/0#";  //蓝星
var tz14 = "#fEffect/CharacterEff/1112926/0/0#";  //红星
var 横条 = tz12 + tz13 + tz14 + tz12 + tz13 + tz14 + tz12 + tz13 + tz14 + tz12 + tz13 + tz14 + tz12 + tz13 + tz14 + tz12 + tz13 + tz14;


function start() {
    status = -1;
    action(1, 0, 0);
}//装备代码：1142574 官方认证女生

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (status == 0) {
        var selStr = "     " + 头顶 + "#e#r认证中心" + 头顶 + "#n\r\n  " + 横条 + "\r\n";
			selStr += "#e#b#L0#" + eff + " 必看说明#l\r\n\r\n";
			selStr += "#e#d#L2#" + eff + " 女生认证(必须为女生#i3700218#)#l\r\n";
			selStr += "#e#d#L3#" + eff + " 男生认证(必须为男生#i3700219#)#l\r\n\r\n";
			selStr += "  " + 横条 + "\r\n";		
			cm.sendSimple(selStr)
    } else if (status == 1) {
        switch (selection) {
		case 0:
            cm.dispose();
            cm.sendOk("#e#r如何获得女生认证勋章：\r\n#d  QQ私密群里的客服管理并进行视频认证，管理进行登记即可获得女生认证书一本。\r\n#e#r领取女生每日福利要求：\r\n#d  将VIP神秘礼包放在背包即可。\r\n#e#r如何领取妹子指定特权男生奖励：\r\n#d  每个认证的女生，我们都会发给她20万点卷,可以免费点装和领取每日奖励,部分功能正在开发。\r\n#e#r女生专用特色副本：\r\n#d  暂时未开放，请期待吧！\r\n    #r认证玩家将享受各种福利。");
            break;
        case 2:
                  if (cm.haveItem(3700218, 1) && cm.getPlayerStat("GENDER") == 1 && cm.getSpace(1) >= 2 && cm.getSpace(2) >= 2) {
		cm.gainItem(3700218, -1);
                 var toDrop = cm.getNewEquip(1142574);
		toDrop.setStr(50); //装备力量
		toDrop.setDex(50); //装备敏捷
		toDrop.setInt(50); //装备智力
		toDrop.setLuk(50); //装备运气
		toDrop.setMatk(50); //物理攻击
		toDrop.setWatk(50); //魔法攻击
		//toDrop.setEnhance(25);
		cm.addFromDrop(toDrop);
		cm.gainItem(2432022, 1, 30);//VIP神秘礼盒
		//cm.gainItem(3800748, 1);
                cm.gainNX(200000);
		cm.sendOk("恭喜你成为本服认证女生");
		cm.worldSpouseMessage(0x05, "『女生系统』" + " : " + "玩家 " + cm.getChar().getName() + " 成为本服认证女生，男生们快去调戏她把。");
			        cm.dispose();
                } else {
                cm.sendOk("你没有#v3700218#或者你不是女生。或者背包空间不够。需要装备栏2格，消耗栏2格。");
            }
                 break;
		case 3:
                if (cm.haveItem(3800748, 1)/* && cm.getPlayerStat("GENDER") == 0*/) {
		cm.gainItem(3800748, -1);
		//cm.gainItem(1142796, 1);//官方认证男神
                 var toDrop = cm.getNewEquip(1142796);
		toDrop.setStr(100); //装备力量
		toDrop.setDex(100); //装备敏捷
		toDrop.setInt(100); //装备智力
		toDrop.setLuk(100); //装备运气
		toDrop.setMatk(100); //物理攻击
		toDrop.setWatk(100); //魔法攻击
		//toDrop.setEnhance(25);
		cm.addFromDrop(toDrop);
		//cm.gainItem(2430865, 1, 30);//VIP神秘礼盒
					cm.sendOk("恭喜你成为本服认证男生");
					//cm.worldSpouseMessage(0x05, "『男神系统』" + " : " + "玩家 " + cm.getChar().getName() + " 成功获取某人的芳心，成为了本服认证男神。");
			        cm.dispose();
                } else {
                cm.sendOk("你没有#v3800748#或者你不是男生。");
            }
            break;
        }
		cm.dispose();
    }
}
